package cloud.maque.base.dingding.service;

/**
 * 相关文档：
 * https://open.dingtalk.com/document/orgapp/authorization-overview
 *
 * @author zhuyf
 * @date 2023/3/3 11:08
 */
public interface DingdingTokenService {

    /**
     * 企业内部Token
     *
     * @return
     */
    String GetAccessEnterpriseToken();

    String GetAccessEnterpriseToken(String clientId, String clientSecret);

    /**
     * 用户accessToken
     *
     * @param authCode
     * @return
     */
    String GetAccessUserToken(String authCode);

    String GetAccessUserToken(String clientId, String clientSecret, String authCode);
}
